package com.gl.basis.common.log;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;
import java.util.Map;

public class OperateLogger {

	@JSONField(ordinal = 1)
	private String traceId;

	@JSONField(ordinal = 2)
	private String title;

	@JSONField(ordinal = 3)
	private Object message;

	@JSONField(ordinal = 4)
	private String ip;

	@JSONField(ordinal = 5)
	private String userId;

	@JSONField(ordinal = 6)
	private String requestUri;

	@JSONField(ordinal = 7)
	private String className;

	@JSONField(ordinal = 8)
	private String methodName;

	@JSONField(ordinal = 9)
	private Map<String,Object> params;

	@JSONField(ordinal = 10)
	private Map<String,Object> result;

	@JSONField(ordinal = 11)
	private double costTime;

	@JSONField(ordinal = 12)
	private List<String> exception;

	public String getTraceId() {
		return traceId;
	}

	public void setTraceId(String traceId) {
		this.traceId = traceId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Object getMessage() {
		return message;
	}

	public void setMessage(Object message) {
		this.message = message;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getRequestUri() {
		return requestUri;
	}

	public void setRequestUri(String requestUri) {
		this.requestUri = requestUri;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public Map<String, Object> getParams() {
		return params;
	}

	public void setParams(Map<String, Object> params) {
		this.params = params;
	}

	public Map<String, Object> getResult() {
		return result;
	}

	public void setResult(Map<String, Object> result) {
		this.result = result;
	}

	public double getCostTime() {
		return costTime;
	}

	public void setCostTime(double costTime) {
		this.costTime = costTime;
	}

	public List<String> getException() {
		return exception;
	}

	public void setException(List<String> exception) {
		this.exception = exception;
	}
}
